# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=drm_info
pkgver=2.6.0
pkgrel=0
pkgdesc="Small utility to dump info about DRM devices"
url="https://gitlab.freedesktop.org/emersion/drm_info"
license="MIT"
arch="all"
options="!check" # no test suite
makedepends="meson libdrm-dev pciutils-dev json-c-dev scdoc"
subpackages="$pkgname-doc"
source="https://gitlab.freedesktop.org/emersion/drm_info/-/archive/v$pkgver/drm_info-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
123ef0569f5d6c36a9ac9abe070bfdff9baed6f7a33c4fb63841d243dea4cab0eda262a3719e6c48f192ed590740f4e46bc68ec4cc26b5458b6cf5c0c78b5131  drm_info-v2.6.0.tar.gz
"
